﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPP.Core.Extens
{
    public static class StringExtends
    {
        /// <summary>
        /// 判断字符串是否为空或null
        /// </summary>
        /// <param name="str">要判断的字符串</param>
        /// <returns></returns>
        public static bool IsNullOrEmpty(this string str)
        {
            if(string.IsNullOrEmpty(value: str))
                return true;
            else 
                return false;
        }
    }
}
